package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_quotation_item")
public class QuotationItemDo extends Model<QuotationItemDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("quotation_id")
    private Long quotationId;

    @TableField("third_id")
    private Long thirdId;

    /**
     * 0 物流费 1操作费 2 仓租费
     */
    @TableField("quotation_item_type")
    private Integer quotationItemType;

    /**
     * 调整 0 无调整 1 调整
     */
    @TableField("adjustment_status")
    private Integer adjustmentStatus;

    /**
     * 调整方式 0 加 1减 2乘
     */
    @TableField("adjustment_type")
    private Integer adjustmentType;

    /**
     * 调整价格
     */
    @TableField("adjustment_price")
    private Double adjustmentPrice;

//    @TableField("remark")
//    private String remark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
